import { stringify } from 'qs';
import request from '../utils/request';

export async function submitSeekHelp(params) {
  return request(
    `/api/web/seekHelpInfo/saveByRs?${stringify(params)}`,{
    method: 'POST',
    body: {
      ...params,
      method: 'post',
    },
  });
}

export async function querySeekHelp(params) {
  return request(`/api/web/seekHelpInfo/listRsPubSeekHelpInfo?${stringify(params)}`);
}

export async function delSeekHelpInfo(params) {
  return request(`/api/web/seekHelpInfo/delSeekHelpInfo?${stringify(params)}`);
}

export async function updateSeekHelpInfoDealStatus(params) {
  return request(`/api/web/seekHelpInfo/updateSeekHelpInfoDealStatus?${stringify(params)}`);
}


export async function getSeekHelpInfoById(params) {
  return request(`/api/web/seekHelpInfo/getSeekHelpInfoById?${stringify(params)}`);
}

